package com.yootk.di.config;

import java.beans.ConstructorProperties;

/**
 * 定义消息数据的配置类
 */
public class MessageConfig {
    private String host;
    private int port;
    private boolean enable;

    public MessageConfig() {
    }

    @ConstructorProperties(value = {"paramHost", "paramPort", "paramEnable"})
    public MessageConfig(String host, int port, boolean enable) {
        this.host = host;
        this.port = port;
        this.enable = enable;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
